HAL FLASH ITF Types

HAL FLASH ITF Types

group FLASH_ITF_Exported_Types

Enums

enum hal_flash_t

HAL FLASH instances enumeration definition

Values:

enumerator HAL_FLASH

FLASH Instance

enum hal_flash_bank_t

HAL FLASH bank enumeration definition

Values:

enumerator HAL_FLASH_BANK_1

FLASH bank 1

enumerator HAL_FLASH_BANK_2

FLASH bank 2

enumerator HAL_FLASH_BANK_ALL

FLASH all banks. This value is only used internally for mass erase feature. It must not be used for other purposes.

enum hal_flash_itf_lock_status_t

HAL FLASH ITF lock status enumeration definition

Values:

enumerator HAL_FLASH_ITF_UNLOCKED

FLASH ITF unlocked

enumerator HAL_FLASH_ITF_LOCKED

FLASH ITF locked

enum hal_flash_itf_latency_t

HAL FLASH ITF latency enumeration definition

Values:

enumerator HAL_FLASH_ITF_LATENCY_0

Zero wait state FLASH ITF zero wait state

enumerator HAL_FLASH_ITF_LATENCY_1

One wait state FLASH ITF one wait state

enumerator HAL_FLASH_ITF_LATENCY_2

Two wait states FLASH ITF two wait states

enumerator HAL_FLASH_ITF_LATENCY_3

Three wait states FLASH ITF three wait states

enumerator HAL_FLASH_ITF_LATENCY_4

Four wait states FLASH ITF four wait states

enumerator HAL_FLASH_ITF_LATENCY_5

Five wait states FLASH ITF five wait states

enumerator HAL_FLASH_ITF_LATENCY_6

Six wait states FLASH ITF six wait states

enumerator HAL_FLASH_ITF_LATENCY_7

Seven wait states FLASH ITF seven wait states

enumerator HAL_FLASH_ITF_LATENCY_8

Eight wait states FLASH ITF eight wait states

enumerator HAL_FLASH_ITF_LATENCY_9

Nine wait states FLASH ITF nine wait states

enumerator HAL_FLASH_ITF_LATENCY_10

Ten wait states FLASH ITF ten wait states

enumerator HAL_FLASH_ITF_LATENCY_11

Eleven wait states FLASH ITF eleven wait states

enumerator HAL_FLASH_ITF_LATENCY_12

Twelve wait states FLASH ITF twelve wait states

enumerator HAL_FLASH_ITF_LATENCY_13

Thirteen wait states FLASH ITF thirteen wait states

enumerator HAL_FLASH_ITF_LATENCY_14

Fourteen wait states FLASH ITF fourteen wait states

enumerator HAL_FLASH_ITF_LATENCY_15

Fifteen wait states FLASH ITF fifteen wait states

enum hal_flash_itf_program_delay_t

HAL FLASH ITF programming delay enumeration definition

Values:

enumerator HAL_FLASH_ITF_PROGRAM_DELAY_0

Programming delay for Flash frequency at 68 MHz or less FLASH ITF 0 programming delay

enumerator HAL_FLASH_ITF_PROGRAM_DELAY_1

0x00000010 Programming delay for Flash frequency between 68 MHz and 136 MHz FLASH ITF 1 programming delay

enumerator HAL_FLASH_ITF_PROGRAM_DELAY_2

0x00000020 Programming delay for Flash frequency between 136 MHz and 170 MHz FLASH ITF 2 programming delay

enumerator HAL_FLASH_ITF_PROGRAM_DELAY_3

Programming delay for Flash frequency at 170 MHz or above FLASH ITF 3 programming delay

enum hal_flash_itf_prefetch_status_t

HAL FLASH ITF Prefetch enumeration definition

Values:

enumerator HAL_FLASH_ITF_PREFETCH_DISABLED

FLASH ITF prefetch disabled

enumerator HAL_FLASH_ITF_PREFETCH_ENABLED

FLASH ITF prefetch enabled

enum hal_flash_itf_empty_boot_location_t

HAL FLASH ITF Empty boot location enumeration definition

Values:

enumerator HAL_FLASH_ITF_BOOT_LOCATION_PROGRAMMED

Boot location is programmed FLASH ITF boot location programmed

enumerator HAL_FLASH_ITF_BOOT_LOCATION_EMPTY

0x00010000 Main Flash memory area empty (not reset by system reset) Boot location is empty FLASH ITF boot location empty

enum hal_flash_itf_priv_attr_t

HAL FLASH ITF privilege attribute enumeration definition

Values:

enumerator HAL_FLASH_ITF_NPRIV

Non-privileged attribute FLASH ITF Non-privileged attribute

enumerator HAL_FLASH_ITF_PRIV

Privileged attribute FLASH ITF Privileged attribute

enum hal_flash_itf_rdp_key_lock_status_t

HAL FLASH ITF RDP key lock status enumeration definition

Values:

enumerator HAL_FLASH_ITF_RDP_KEY_UNLOCKED

FLASH ITF RDP key unlocked

enumerator HAL_FLASH_ITF_RDP_KEY_LOCKED

FLASH ITF RDP key locked

enum hal_flash_itf_ob_lock_status_t

HAL FLASH ITF option bytes lock status enumeration definition

Values:

enumerator HAL_FLASH_ITF_OB_UNLOCKED

FLASH ITF option bytes unlocked

enumerator HAL_FLASH_ITF_OB_LOCKED

FLASH ITF option bytes locked

enum hal_flash_itf_ob_otp_blk_lock_status_t

HAL FLASH ITF option bytes OTP block lock status enumeration definition

Values:

enumerator HAL_FLASH_ITF_OB_OTP_BLK_UNLOCKED

FLASH ITF option bytes OTP block unlocked

enumerator HAL_FLASH_ITF_OB_OTP_BLK_LOCKED

FLASH ITF option bytes OTP block locked

enum hal_flash_itf_ob_wrp_page_status_t

HAL FLASH ITF option bytes WRP page status enumeration definition

Values:

enumerator HAL_FLASH_ITF_OB_WRP_PAGE_NOT_PROTECTED

FLASH ITF option bytes write protection page not protected

enumerator HAL_FLASH_ITF_OB_WRP_PAGE_PROTECTED

FLASH ITF option bytes write protection page protected

enum hal_flash_itf_ob_edata_area_status_t

HAL FLASH ITF option bytes EDATA area status enumeration definition

Values:

enumerator HAL_FLASH_ITF_OB_EDATA_AREA_DISABLED

FLASH ITF option bytes EDATA area disabled

enumerator HAL_FLASH_ITF_OB_EDATA_AREA_ENABLED

FLASH ITF option bytes EDATA area enabled

enum hal_flash_itf_ob_rdp_level_t

HAL FLASH ITF option bytes Read-out Protection level enumeration definition

Values:

enumerator HAL_FLASH_ITF_OB_RDP_LEVEL_0

RDP Level 0 OB FLASH ITF OB RDP Level 0

enumerator HAL_FLASH_ITF_OB_RDP_LEVEL_2_WBS

RDP Level 2 with Boundary Scan OB FLASH ITF OB RDP Level 2 with Boundary Scan

enumerator HAL_FLASH_ITF_OB_RDP_LEVEL_2

RDP Level 2 OB FLASH ITF OB RDP Level 2

enum hal_flash_itf_ob_rst_generation_status_t

HAL FLASH ITF option bytes reset generation when enter in low power mode enumeration definition

Values:

enumerator HAL_FLASH_ITF_OB_RST_GENERATION

FLASH ITF option bytes reset generation when entering low power mode

enumerator HAL_FLASH_ITF_OB_NO_RST_GENERATION

FLASH ITF option bytes no reset generation when entering low power mode

enum hal_flash_itf_ob_sys_rst_sram_erase_t

HAL FLASH ITF option bytes Erased SRAM when system reset enumeration definition

Values:

enumerator HAL_FLASH_ITF_OB_SYS_RST_SRAM_ERASE

FLASH ITF option bytes erased SRAM when system reset occurs

enumerator HAL_FLASH_ITF_OB_SYS_RST_SRAM_NO_ERASE

FLASH ITF option bytes no erased SRAM when system reset occurs

enum hal_flash_itf_ob_wdg_mode_t

HAL FLASH ITF option bytes xWDG hardware/software mode enumeration definition

Values:

enumerator HAL_FLASH_ITF_OB_WDG_HARDWARE

FLASH ITF option bytes WDG hardware select

enumerator HAL_FLASH_ITF_OB_WDG_SOFTWARE

FLASH ITF option bytes WDG software select

enum hal_flash_itf_ob_wdg_freeze_status_t

HAL FLASH ITF option bytes IWDG counter low-power mode freeze status enumeration definition

Values:

enumerator HAL_FLASH_ITF_OB_WDG_FROZEN

FLASH ITF option bytes IWDG counter low-power mode frozen

enumerator HAL_FLASH_ITF_OB_WDG_UNFROZEN

FLASH ITF option bytes IWDG counter low-power mode running

enum hal_flash_itf_ob_boot_selection_t

HAL FLASH ITF option bytes BOOT0 source selection enumeration definition

Values:

enumerator HAL_FLASH_ITF_OB_BOOT_OPTION_BIT

Boot0 selection OB FLASH ITF option bytes BOOT taken from option bit

enumerator HAL_FLASH_ITF_OB_BOOT_PIN

0x00400000 Boot 0 source configuration Boot pin selection OB FLASH ITF option bytes BOOT taken from boot pin

enum hal_flash_itf_ob_boot_state_t

HAL FLASH ITF option bytes software BOOT0 enumeration definition

Values:

enumerator HAL_FLASH_ITF_OB_BOOT_LOW

BOOT0 value 0 OB FLASH ITF option bytes BOOT option bit low state

enumerator HAL_FLASH_ITF_OB_BOOT_HIGH

0x00800000 Boot 0 option bit BOOT0 value 1 OB FLASH ITF option bytes BOOT option bit high state

enum hal_flash_itf_ob_topology_t

HAL FLASH ITF option bytes Single/Dual bank enumeration definition

Values:

enumerator HAL_FLASH_ITF_OB_SINGLE_BANK

0x40000000 Dual bank option configuration bit Single bank OB FLASH ITF option bytes single bank

enumerator HAL_FLASH_ITF_OB_DUAL_BANK

Dual bank OB FLASH ITF option bytes dual bank

enum hal_flash_itf_ob_bank_swap_t

HAL FLASH ITF option bytes Swapping bank enumeration definition

Values:

enumerator HAL_FLASH_ITF_OB_BANK_NO_SWAP

Bank not swapped OB FLASH ITF option bytes bank no swap

enumerator HAL_FLASH_ITF_OB_BANK_SWAP

0x80000000 Bank swapping option configuration bit Bank swapped OB FLASH ITF option bytes bank swap

enum hal_flash_itf_ob_bank_swap_status_t

HAL FLASH ITF option bytes Swapping bank status enumeration definition

Values:

enumerator HAL_FLASH_ITF_OB_BANK_NOT_SWAPPED

FLASH ITF option bytes bank not swapped

enumerator HAL_FLASH_ITF_OB_BANK_SWAPPED

FLASH ITF option bytes bank swapped

enum hal_flash_itf_ob_sram_ecc_status_t

HAL FLASH ITF option bytes SRAM ECC enumeration definition

Values:

enumerator HAL_FLASH_ITF_OB_SRAM_ECC_DISABLED

FLASH ITF option bytes SRAM ECC disable

enumerator HAL_FLASH_ITF_OB_SRAM_ECC_ENABLED

FLASH ITF option bytes SRAM ECC enable

enum hal_flash_itf_ob_boot_lock_status_t

HAL FLASH ITF option bytes boot lock status enumeration definition

Values:

enumerator HAL_FLASH_ITF_OB_BOOT_UNLOCKED

FLASH ITF option bytes boot unlocked

enumerator HAL_FLASH_ITF_OB_BOOT_LOCKED

FLASH ITF option bytes boot locked

enum hal_flash_itf_ecc_it_status_t

HAL FLASH ITF ECC interrupt status enumeration definition

Values:

enumerator HAL_FLASH_ITF_ECC_IT_DISABLED

FLASH ITF ECC interrupt disabled

enumerator HAL_FLASH_ITF_ECC_IT_ENABLED

FLASH ITF ECC interrupt enabled

struct hal_flash_itf_ob_rdp_oem_key_t
#include <stm32c5xx_hal_flash_itf.h>

HAL FLASH ITF option bytes read-out protection OEM key structure definition

Public Members

uint32_t key_w1

FLASH ITF RDP OEM key word 1

uint32_t key_w2

FLASH ITF RDP OEM key word 2

uint32_t key_w3

FLASH ITF RDP OEM key word 3

uint32_t key_w4

FLASH ITF RDP OEM key word 4

struct hal_flash_itf_ob_rdp_bs_key_t
#include <stm32c5xx_hal_flash_itf.h>

HAL FLASH ITF option bytes read-out protection BS key structure definition

Public Members

uint32_t key_w1

FLASH ITF RDP BS key word 1